home *** CD-ROM | disk | FTP | other *** search
/ Echoes of Ireland / Echoes of Ireland.iso / IRISH_ENGINE / epss / glossary / Potatoblight.swf / scripts / DefineButton2_13 / BUTTONCONDACTION on(release).as < prev   
Encoding:
Text File  |  2004-06-10  |  779 b   |  22 lines

  1. on(release){
  2.    if(_global.Behaviors == null)
  3.    {
  4.       _global.Behaviors = {};
  5.    }
  6.    if(_global.Behaviors.Sound == null)
  7.    {
  8.       _global.Behaviors.Sound = {};
  9.    }
  10.    if(typeof this.createEmptyMovieClip == "undefined")
  11.    {
  12.       this._parent.createEmptyMovieClip("BS_Potatoblight",new Date().getTime() - Math.floor(new Date().getTime() / 10000) * 10000);
  13.       _global.Behaviors.Sound.Potatoblight = new Sound(this._parent.BS_Potatoblight);
  14.    }
  15.    else
  16.    {
  17.       this.createEmptyMovieClip("_Potatoblight_",new Date().getTime() - Math.floor(new Date().getTime() / 10000) * 10000);
  18.       _global.Behaviors.Sound.Potatoblight = new Sound(this.BS_Potatoblight);
  19.    }
  20.    _global.Behaviors.Sound.Potatoblight.loadSound("audio\\Potatoblight.mp3",true);
  21. }
  22.